/*
 * 文件名：EcConstants.java
 * 版权：
 * 描述：TODO
 * 修改人：zuo liubo
 * 修改时间：2013-3-7 上午10:01:02
 */
package com.scpii.api.common;


/**
 * @description 电商相关的常量类
 * @author zuo liuboO
 * @date 2013-3-7
 */
public class EcConstants {
	
	/**
	 * 电商错误信息
	 * @description TODO
	 * @author zuo liubo
	 * @date 2013-4-23
	 */
	public class ERROR_INFO{
		public final static String VALIDATE_ORDER_FAIL = "订单校验失败"; 
		public final static String GET_PAYINFO_FAIL =  "获取支付信息失败"; 
		public final static String TOTAL_AMOUNT_ERROR =  "总金额不符"; 
		public final static String ORDER_ID_ERROR =  "订单ID失败";
		public final static String PAYMENTINFO_ERROR =  "获取支付信息失败"; 
		public final static String LESS_THAN_ZERO = "购买数不能小于0";
		public final static String LESS_THAN_STORE_QUANTITY = "库存不足";
		public final static String POINTS_BALANCE_NOT_ENOUGH = "积分余额不足";
		public final static String ALIPAY_ERROR = "支付宝异常";
	}
	
	public static final String P12SECRET = "fhzx!@#123";
	
	/**
	 * 时间间隔多长会自动将支付的订单状态转换为交易成功
	 */
	public static final int INTERVAL_DAY = 1000 * 60 * 60 * 24 * 7;
	
	/**
	 * @description 订单状态常量类
	 * @author zuo liubo
	 * @date 2013-3-7
	 */
	public  class OrderStatus{
		/**
		 * 未确认
		 */
		public final static int UNCONFIRMED = 0; 
		/**
		 * 已确认
		 */
		public final static int CONFIRMED = 1; 
		/**
		 * 已取消
		 */
		public final static int CANCELED  = 2; 
		/**
		 * 无效
		 */
		public final static int INVALID = 3; 
		/**
		 * 退货
		 */
		public final static int RETURNED_PURCHASE = 4;
		/**
		 * 交易成功
		 */
		public final static int TRADE_SUCCESS = 5; 
	}
		
	/**
	 * @description 支付状态常量类
	 * @author zuo liubo
	 * @date 2013-3-7
	 */
	public class PayStatus {
		/**
		 * 未付款
		 */
		public final static int PAYMENT_NONE = 0; 
		/**
		 * 付款中
		 */
		public final static int PAYMENT_ING = 1;
		/**
		 * 已付款
		 */
		public final static int PAYMENT_SUCCESS = 2;
		
	}
	
	/**
	 * @description 物流状态常量类
	 * @author zuo liubo
	 * @date 2013-3-7
	 */
	public class ShipStatus{
		/**
		 * 未发货
		 */
		public final static int DELIVER_NONE = 0; 
		
		/**
		 * 备货中
		 */
		public final static int DELIVER_ING = 1; 
		/**
		 * 已发货
		 */
		public final static int DELIVER_SUCCESS = 2; 
		/**
		 * 已收货
		 */
		public final static int DELIVER_TAKE = 3; 
		
	}
	
	/**
	 * @description 支付方式
	 * @author zuo liubo
	 * @date 2013-3-8
	 */
	public class PaymentType{
		/**
		 * 在线支付
		 */
		public final static int PAY_ONLINE = 1; 
		/**
		 * 货到付款
		 */
		public final static int PAY_CASH = 2; 
		/**
		 * 货到付款 或者 在线支付
		 */
		public final static int PAY_CASH_OR_ONLINE = 3; 
		
		/**
		 * 积分支付
		 */
		public final static int PAY_POINT = 9; 
	}
	
}
